home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Mixed Mode Maddness / Emulator / Header / global.h < prev    next >
Text File  |  2000-06-23  |  507b  |  32 lines

  1. #ifndef __GLOBAL__
  2.  
  3. #define __GLOBAL__ 1
  4.  
  5. typedef struct {
  6.     UInt8 mem[255];
  7. } Page, *PagePtr;
  8.  
  9. typedef void (*myfuncPtr)(void);
  10.  
  11.  
  12. typedef struct {
  13.     UInt8 opCode;
  14.     UInt8 baseCode;
  15.     myfuncPtr fun;
  16.     char*    name;
  17.     UInt8    mode;
  18. } OpTable;
  19. #define kNumMemPages    255
  20.  
  21. extern Page* gMyMemoryPages;
  22. extern OpTable gOpCodeBase[];
  23. extern UInt8* gPageZero;
  24. extern UInt8* gStack;
  25. extern UInt16 pc;
  26. extern UInt8 regA, regX, regY, regP, sp;
  27. extern UInt8* gStartofProg;
  28.  
  29. extern UInt8 gNumOpCodes;
  30. extern Boolean gDone;
  31.  
  32. #endif